﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace PowerManage.DbMigrator.Migrations
{
    /// <inheritdoc />
    public partial class 增加权限基础表 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8884));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8892));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8894));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8897));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8900));

            migrationBuilder.InsertData(
                table: "ElePermission",
                columns: new[] { "Id", "ApiMethod", "Code", "Component", "CreationTime", "CreatorId", "Icon", "LastModificationTime", "Name", "ParentId", "PermissionType", "Remark", "Sort", "Status", "Url" },
                values: new object[,]
                {
                    { 6L, "", "system.user.add", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8918), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "添加", 2L, 1, null, 0, 1, "" },
                    { 7L, "", "system.user.edit", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8920), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "编辑", 2L, 1, null, 0, 1, "" },
                    { 8L, "", "system.user.delete", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8922), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "删除", 2L, 1, null, 0, 1, "" },
                    { 9L, "", "system.role.add", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8924), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "添加", 3L, 1, null, 0, 1, "" },
                    { 10L, "", "system.role.edit", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8927), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "编辑", 3L, 1, null, 0, 1, "" },
                    { 11L, "", "system.role.delete", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8929), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "删除", 3L, 1, null, 0, 1, "" },
                    { 12L, "", "system.permission.add", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(8931), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "添加", 4L, 1, null, 0, 1, "" },
                    { 13L, "", "system.permission.edit", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9004), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "编辑", 4L, 1, null, 0, 1, "" },
                    { 14L, "", "system.permission.delete", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9006), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "删除", 4L, 1, null, 0, 1, "" },
                    { 15L, "", "system.rolepermission.update", "", new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9008), 0L, "", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "更新", 5L, 1, null, 0, 1, "" }
                });

            migrationBuilder.UpdateData(
                table: "EleRole",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 67, DateTimeKind.Local).AddTicks(2969));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9085));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9090));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9091));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9092));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9093));

            migrationBuilder.UpdateData(
                table: "EleUser",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "ConcurrencyStamp", "CreationTime", "PasswordHash", "SecurityStamp" },
                values: new object[] { "f960ad02-003c-484d-af5f-950e546e8acf", new DateTime(2025, 6, 3, 13, 59, 4, 67, DateTimeKind.Local).AddTicks(3133), "AQAAAAIAAYagAAAAEAc9Edvir3+rK8UJHL+fMS/9uvyx5agcGyi+dhX9JxEuXCG5P8R7VIdYVAqYpjK/oA==", "7b70b5c4-46c0-4506-a7ac-1c9e29b39fba" });

            migrationBuilder.InsertData(
                table: "EleRolePermission",
                columns: new[] { "Id", "CreationTime", "CreatorId", "LastModificationTime", "PermissionId", "RoleId" },
                values: new object[,]
                {
                    { 6L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9094), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 6L, 1L },
                    { 7L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9095), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 7L, 1L },
                    { 8L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9096), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 8L, 1L },
                    { 9L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9096), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 9L, 1L },
                    { 10L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9098), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 10L, 1L },
                    { 11L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9098), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 11L, 1L },
                    { 12L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9099), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 12L, 1L },
                    { 13L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9099), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 13L, 1L },
                    { 14L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9100), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 14L, 1L },
                    { 15L, new DateTime(2025, 6, 3, 13, 59, 4, 111, DateTimeKind.Local).AddTicks(9100), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 15L, 1L }
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 6L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 7L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 8L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 9L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 10L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 11L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 12L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 13L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 14L);

            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 15L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 6L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 7L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 8L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 9L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 10L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 11L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 12L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 13L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 14L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 15L);

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8317));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8321));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8323));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8326));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8328));

            migrationBuilder.UpdateData(
                table: "EleRole",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 781, DateTimeKind.Local).AddTicks(6768));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8382));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8386));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8386));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8387));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2024, 9, 12, 16, 4, 10, 825, DateTimeKind.Local).AddTicks(8387));

            migrationBuilder.UpdateData(
                table: "EleUser",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "ConcurrencyStamp", "CreationTime", "PasswordHash", "SecurityStamp" },
                values: new object[] { "75a65979-4612-4a2d-b0cd-8aca49d81b40", new DateTime(2024, 9, 12, 16, 4, 10, 781, DateTimeKind.Local).AddTicks(6900), "AQAAAAIAAYagAAAAEMaYa0Vk9NsxwhyYqIMt3RSmBXEeTdEp/TLvn7J28PxVHzxtZrbuHTUxp1vYV3Z/8A==", "835c299a-9bd2-406d-bffa-1b2c002d699a" });
        }
    }
}
